Skip to content

chore: update PraisonAI version to 2.2.21 across Dockerfiles and docu…#556

Merged
MervinPraison merged 1 commit intomainfrom
develop
May 30, 2025
Merged

chore: update PraisonAI version to 2.2.21 across Dockerfiles and docu…#556
MervinPraison merged 1 commit intomainfrom
develop

Conversation

@MervinPraison
Copy link
Copy Markdown
Owner

@MervinPraison MervinPraison commented May 30, 2025

…mentation

  • Updated the version of PraisonAI from 2.2.20 to 2.2.21 in all relevant Dockerfiles.
  • Adjusted README and local development documentation to reflect the new version.
  • Ensured consistency in versioning across all instances where PraisonAI is referenced.

Summary by CodeRabbit

  • Bug Fixes
    • Updated all references to the PraisonAI package to require version 2.2.21 for improved compatibility and stability.
    • Replaced usage of WebCrawler and AsyncWebCrawler with AsyncAsyncWebCrawler in several components to ensure correct web crawling behavior.
  • Documentation
    • Updated documentation and example code to reflect the new PraisonAI version and correct web crawler class names in code snippets and usage instructions.

…mentation

- Updated the version of PraisonAI from 2.2.20 to 2.2.21 in all relevant Dockerfiles.
- Adjusted README and local development documentation to reflect the new version.
- Ensured consistency in versioning across all instances where PraisonAI is referenced.
@netlify
Copy link
Copy Markdown

netlify bot commented May 30, 2025

Deploy Preview for praisonai ready!

Name Link
🔨 Latest commit 06e2517
🔍 Latest deploy log https://app.netlify.com/projects/praisonai/deploys/6839c2793845bb00080148d8
😎 Deploy Preview https://deploy-preview-556--praisonai.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@MervinPraison MervinPraison merged commit 107cc3f into main May 30, 2025
12 of 14 checks passed
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented May 30, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

This change updates the minimum required version of the praisonai Python package from 2.2.20 to 2.2.21 across Dockerfiles, documentation, deployment scripts, and project metadata. Additionally, several import statements and class usages for web crawlers are updated to use asynchronous variants in both code and documentation.

Changes

Files/Paths Change Summary
docker/Dockerfile, docker/Dockerfile.chat, docker/Dockerfile.dev, docker/Dockerfile.ui Bump praisonai package version from 2.2.20 to 2.2.21 in pip install commands.
docker/README.md, docs/developers/local-development.mdx, docs/ui/chat.mdx, docs/ui/code.mdx Update documentation and code snippets to require praisonai version 2.2.21.
docs/api/praisonai/deploy.html, src/praisonai/praisonai/deploy.py Update Dockerfile creation logic to install praisonai 2.2.21.
src/praisonai/pyproject.toml, src/praisonai/praisonai.rb Update project/package version from 2.2.20 to 2.2.21.
docs/tools/crawl4ai.mdx, examples/cookbooks/yaml/model_fee_retreival_agents.ipynb, src/praisonai/praisonai/ui/realtimeclient/tools.py Change imports and usage from WebCrawler to AsyncWebCrawler.
docs/tools/spider_tools.mdx Update example agent name from "WebCrawler" to "AsyncWebCrawler".
src/praisonai/praisonai/ui/chat.py, src/praisonai/praisonai/ui/code.py, src/praisonai/praisonai/ui/components/aicoder.py Change imports and usage from AsyncWebCrawler to AsyncAsyncWebCrawler in async functions.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant Dockerfile
    participant pip
    participant PraisonAI

    User->>Dockerfile: Build image
    Dockerfile->>pip: Install praisonai==2.2.21
    pip->>PraisonAI: Download and install package
    PraisonAI-->>Dockerfile: Installation complete
    Dockerfile-->>User: Image ready with praisonai 2.2.21
Loading
sequenceDiagram
    participant Code
    participant AsyncWebCrawler
    participant AsyncAsyncWebCrawler

    Code->>AsyncWebCrawler: (Old) Instantiate and run
    Code->>AsyncAsyncWebCrawler: (New) Instantiate and run
Loading

Possibly related PRs

Suggested labels

Review effort 1/5

Poem

A version hop, a rabbit leap,
From twenty to twenty-one,
Dockerfiles and docs in sync,
Async crawlers on the run!
With every bump, the code grows neat—
PraisonAI’s update is complete!
🐇✨


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ed2ab6b and 06e2517.

⛔ Files ignored due to path filters (1)
  • src/praisonai/uv.lock is excluded by !**/*.lock
📒 Files selected for processing (19)
  • docker/Dockerfile (1 hunks)
  • docker/Dockerfile.chat (1 hunks)
  • docker/Dockerfile.dev (1 hunks)
  • docker/Dockerfile.ui (1 hunks)
  • docker/README.md (2 hunks)
  • docs/api/praisonai/deploy.html (1 hunks)
  • docs/developers/local-development.mdx (1 hunks)
  • docs/tools/crawl4ai.mdx (2 hunks)
  • docs/tools/spider_tools.mdx (1 hunks)
  • docs/ui/chat.mdx (1 hunks)
  • docs/ui/code.mdx (1 hunks)
  • examples/cookbooks/yaml/model_fee_retreival_agents.ipynb (5 hunks)
  • src/praisonai/praisonai.rb (1 hunks)
  • src/praisonai/praisonai/deploy.py (1 hunks)
  • src/praisonai/praisonai/ui/chat.py (2 hunks)
  • src/praisonai/praisonai/ui/code.py (2 hunks)
  • src/praisonai/praisonai/ui/components/aicoder.py (2 hunks)
  • src/praisonai/praisonai/ui/realtimeclient/tools.py (3 hunks)
  • src/praisonai/pyproject.toml (2 hunks)
✨ Finishing Touches
  • 📝 Generate Docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @MervinPraison, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

Summary of Changes

Hello team,

Gemini or gemini-code-assist here to provide a summary of this pull request. This PR primarily focuses on updating the version of the praisonai package used throughout the project's configuration and documentation. The version is being bumped from 2.2.20 to 2.2.21. This involves updating various Dockerfiles, READMEs, documentation files, and project configuration files (pyproject.toml, uv.lock). Additionally, there are some changes in documentation and code examples related to the crawl4ai library, specifically renaming WebCrawler to AsyncWebCrawler and potentially AsyncWebCrawler to AsyncAsyncWebCrawler in some UI components.

Highlights

  • PraisonAI Version Update: The core change is updating the required version of the praisonai package from 2.2.20 to 2.2.21 across all relevant project files.
  • Dockerfile Updates: All main Dockerfiles (Dockerfile, Dockerfile.chat, Dockerfile.dev, Dockerfile.ui) have been updated to install praisonai>=2.2.21.
  • Documentation Sync: Documentation files (README, local development guide, API deploy guide, UI chat/code guides) have been updated to reflect the new 2.2.21 version, both for minimum requirements and pinned examples.
  • Crawl4AI Class Renaming: Several documentation files and code examples related to web crawling have been updated to use AsyncWebCrawler instead of WebCrawler. Note: Some UI files appear to change AsyncWebCrawler to AsyncAsyncWebCrawler.
  • Project Configuration Update: The pyproject.toml and uv.lock files have been updated to specify the project's version and the praisonai dependency version as 2.2.21.
  • Homebrew Formula Update: The Homebrew formula for PraisonAI has been updated to point to the v2.2.21 tag and calculate the corresponding SHA256 hash.

Changelog

Click here to see the changelog
  • docker/Dockerfile
    • Updated praisonai dependency version constraint from >=2.2.20 to >=2.2.21.
  • docker/Dockerfile.chat
    • Updated praisonai dependency version constraint from >=2.2.20 to >=2.2.21.
  • docker/Dockerfile.dev
    • Updated praisonai dependency version constraint from >=2.2.20 to >=2.2.21.
  • docker/Dockerfile.ui
    • Updated praisonai dependency version constraint from >=2.2.20 to >=2.2.21.
  • docker/README.md
    • Updated the listed minimum PraisonAI version from >=2.2.20 to >=2.2.21.
    • Updated the example version pinning command from ==2.2.20 to ==2.2.21.
  • docs/api/praisonai/deploy.html
    • Updated the pinned praisonai version in the example Dockerfile content from ==2.2.20 to ==2.2.21.
  • docs/developers/local-development.mdx
    • Updated the pinned praisonai version in the example Dockerfile content from ==2.2.20 to ==2.2.21.
  • docs/tools/crawl4ai.mdx
    • Changed import of WebCrawler to AsyncWebCrawler.
    • Changed instantiation of WebCrawler() to AsyncWebCrawler().
  • docs/tools/spider_tools.mdx
    • Changed the name attribute of the example Agent from WebCrawler to AsyncWebCrawler.
  • docs/ui/chat.mdx
    • Updated the pinned praisonai version in the example Dockerfile content from ==2.2.20 to ==2.2.21.
  • docs/ui/code.mdx
    • Updated the pinned praisonai version in the example Dockerfile content from ==2.2.20 to ==2.2.21.
  • examples/cookbooks/yaml/model_fee_retreival_agents.ipynb
    • Changed import of WebCrawler to AsyncWebCrawler.
    • Changed instantiation of WebCrawler() to AsyncWebCrawler().
    • Updated log messages to refer to AsyncWebCrawler instead of WebCrawler.
  • src/praisonai/praisonai.rb
    • Updated the download URL for the Homebrew formula to use the v2.2.21 tag.
    • Updated the SHA256 hash calculation to use the v2.2.21 tag.
  • src/praisonai/praisonai/deploy.py
    • Updated the pinned praisonai version written into the generated Dockerfile content from ==2.2.20 to ==2.2.21.
  • src/praisonai/praisonai/ui/chat.py
    • Changed import of AsyncWebCrawler to AsyncAsyncWebCrawler.
    • Changed instantiation of AsyncWebCrawler() to AsyncAsyncWebCrawler().
  • src/praisonai/praisonai/ui/code.py
    • Changed import of AsyncWebCrawler to AsyncAsyncWebCrawler.
    • Changed instantiation of AsyncWebCrawler() to AsyncAsyncWebCrawler().
  • src/praisonai/praisonai/ui/components/aicoder.py
    • Changed import of AsyncWebCrawler to AsyncAsyncWebCrawler.
    • Changed instantiation of AsyncWebCrawler() to AsyncAsyncWebCrawler().
  • src/praisonai/praisonai/ui/realtimeclient/tools.py
    • Changed import of WebCrawler to AsyncWebCrawler.
    • Changed instantiation of WebCrawler() to AsyncWebCrawler() in process_tavily_results.
    • Changed instantiation of WebCrawler() to AsyncWebCrawler() in fallback_to_duckduckgo.
  • src/praisonai/pyproject.toml
    • Updated the project version from 2.2.20 to 2.2.21.
    • Updated the tool.poetry version from 2.2.20 to 2.2.21.
  • src/praisonai/uv.lock
    • Updated the locked version of the praisonai package from 2.2.20 to 2.2.21.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.


Version bumps arrive,
Code and docs must now align,
Sync is the key.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request successfully updates the PraisonAI version to 2.2.21 across various Dockerfiles and documentation, ensuring consistency. The changes are mostly straightforward version bumps.

However, a critical issue has been identified in several Python files where AsyncAsyncWebCrawler is imported and used. This appears to be a typo and should likely be AsyncWebCrawler from the crawl4ai library. This typo will lead to import errors and runtime failures in the affected UI components.

Summary of Findings

  • Potential Typo in Class Name: The class AsyncAsyncWebCrawler is imported and used in src/praisonai/praisonai/ui/chat.py, src/praisonai/praisonai/ui/code.py, and src/praisonai/praisonai/ui/components/aicoder.py. This is likely a typo and should be AsyncWebCrawler. This will cause ImportError and NameError at runtime.
  • Versioning Consistency: The PraisonAI version has been consistently updated to 2.2.21 across Dockerfiles, documentation, and project configuration files. This is well done.
  • Documentation Updates: Documentation files (READMEs, HTML, MDX) have been updated to reflect the new version and changes in crawl4ai usage (e.g., WebCrawler to AsyncWebCrawler). This ensures documentation stays aligned with the codebase.

Merge Readiness

The pull request primarily focuses on updating the PraisonAI version, and these changes are largely consistent and correct. However, there is a critical issue with a potential typo (AsyncAsyncWebCrawler instead of AsyncWebCrawler) in several Python files. This typo will lead to runtime errors and must be addressed before merging.

I recommend that the identified critical issues be fixed. After these changes, the PR should be in a much better state for merging. As an AI, I am not authorized to approve pull requests; please ensure other reviewers approve this code before merging.

from PIL import Image
from tavily import TavilyClient
from crawl4ai import AsyncWebCrawler
from crawl4ai import AsyncAsyncWebCrawler
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

It seems there might be a typo in the imported class name. AsyncAsyncWebCrawler is likely intended to be AsyncWebCrawler. Could you please verify the correct class name from the crawl4ai library? If this is a typo, it will cause an ImportError at runtime.

Suggested change
from crawl4ai import AsyncAsyncWebCrawler
from crawl4ai import AsyncWebCrawler

logger.debug(f"Tavily search response: {response}")

async with AsyncWebCrawler() as crawler:
async with AsyncAsyncWebCrawler() as crawler:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

Similar to the import, this instantiation of AsyncAsyncWebCrawler appears to be a typo. If the class is indeed AsyncWebCrawler, this line will need to be corrected to avoid a NameError at runtime.

Suggested change
async with AsyncAsyncWebCrawler() as crawler:
async with AsyncWebCrawler() as crawler:

from context import ContextGatherer
from tavily import TavilyClient
from crawl4ai import AsyncWebCrawler
from crawl4ai import AsyncAsyncWebCrawler
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

There appears to be a typo in the imported class name here as well. AsyncAsyncWebCrawler should likely be AsyncWebCrawler. Please check the crawl4ai library for the correct class name to prevent ImportError.

Suggested change
from crawl4ai import AsyncAsyncWebCrawler
from crawl4ai import AsyncWebCrawler

# Create an instance of AsyncWebCrawler
async with AsyncWebCrawler() as crawler:
# Create an instance of AsyncAsyncWebCrawler
async with AsyncAsyncWebCrawler() as crawler:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

This instantiation of AsyncAsyncWebCrawler seems to be a typo, consistent with the import. If the correct class is AsyncWebCrawler, this should be updated to prevent a NameError.

Suggested change
async with AsyncAsyncWebCrawler() as crawler:
async with AsyncWebCrawler() as crawler:

import dotenv
from tavily import TavilyClient
from crawl4ai import AsyncWebCrawler
from crawl4ai import AsyncAsyncWebCrawler
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

It looks like there's a typo in the imported class name. AsyncAsyncWebCrawler is probably meant to be AsyncWebCrawler. Could you confirm the correct class name from crawl4ai to avoid an ImportError?

Suggested change
from crawl4ai import AsyncAsyncWebCrawler
from crawl4ai import AsyncWebCrawler

response = self.tavily_client.search(query)
results = []
async with AsyncWebCrawler() as crawler:
async with AsyncAsyncWebCrawler() as crawler:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

This instantiation of AsyncAsyncWebCrawler also appears to be a typo. If AsyncWebCrawler is the correct class, this line needs to be changed to prevent a NameError at runtime.

Suggested change
async with AsyncAsyncWebCrawler() as crawler:
async with AsyncWebCrawler() as crawler:

shaneholloman pushed a commit to shaneholloman/praisonai that referenced this pull request Feb 4, 2026
chore: update PraisonAI version to 2.2.21 across Dockerfiles and docu…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant